package com.tony.mapper.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tony
 * @date 2020/5/30 17:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_admin_menu")
public class AdminMenu implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜单名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 父级ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 状态1：正常2：禁用
     */
    @TableField(value = "is_enable")
    private Integer isEnable;

    /**
     * 删除状态1：正常2：删除
     */
    @TableLogic
    @TableField(value = "is_del")
    private Integer isDel;

    /**
     * 编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 路由
     */
    @TableField(value = "route")
    private String route;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建者id
     */
    @TableField(value = "create_id")
    private Integer createId;

    /**
     * 修改者id
     */
    @TableField(value = "update_id")
    private Integer updateId;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_IS_ENABLE = "is_enable";

    public static final String COL_IS_DEL = "is_del";

    public static final String COL_CODE = "code";

    public static final String COL_ICON = "icon";

    public static final String COL_ROUTE = "route";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_ID = "create_id";

    public static final String COL_UPDATE_ID = "update_id";

    public static final String COL_UPDATE_TIME = "update_time";
}